from api.ihrm_dep_manage_api import IHRMDepManageApi
from common.token_util import TokenUtil


class Dep_Util:
    @classmethod
    def get_token_util(cls):
        token =TokenUtil.get_token()
        depart_add_body = {"name": "test", "code": "123456789"}
        resp =IHRMDepManageApi.dep_add_manage(token,depart_add_body)
        emp_id =resp.json().get("data").get("id")
        return emp_id

if __name__ == '__main__':
    book =Dep_Util.get_token_util()
    print(book)

